get specific word from string php

41

$myString = "input/name/something";

$strArray = explode('/',$myString);
$name = $strArray[1];
$something = $strArray[2];

Comments

Submit
0 Comments